using System;
using System.Windows.Media;

namespace Glissando
{
    public class JamBuddy
    {
        public string Alias { get; set; }
        public string Location { get; set; }
        public Color Color { get; set; }
        public bool Enabled { get; set; }

        public JamBuddy(string a, string l)
        {
            Alias = a;
            Location = l;
            Color = NewColor();
        }

        private static Random r = new Random();
        private int idx = 0;
        // todo - better colors
        private Color[] colors = {
                                     Colors.Tomato, Colors.Orange, Colors.Gold, Colors.YellowGreen, Colors.DarkGreen, Colors.Khaki
                                 };

        private Color NewColor()
        {
            idx++;
            return colors[idx % colors.Length];
        }

        public override string ToString()
        {
            return Alias + ", " + Location;
        }
    }
}